from django.urls import path
from rest_framework_simplejwt.views import TokenRefreshView
from . import views

app_name = 'users'

urlpatterns = [
    # 用户认证
    path('register/', views.RegisterView.as_view(), name='register'),
    path('login/', views.LoginView.as_view(), name='login'),
    path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('check-email/', views.CheckEmailView.as_view(), name='check_email'),
    
    # 用户信息
    path('profile/', views.UserProfileView.as_view(), name='profile'),
    path('change-password/', views.ChangePasswordView.as_view(), name='change_password'),
    path('login-history/', views.UserLoginHistoryView.as_view(), name='login_history'),
    
    # 会员类型
    path('membership-types/', views.MembershipTypeListView.as_view(), name='membership_types'),
]